/* Matrix.hh -- Objeto Matriz
 *
 * Copyright (C) 2008, Diogo F. S. Ramos <diogo.ramos@usp.br>
 * GEAR - Grupo de Estudos Avançados em Robótica
 * <http://www.sel.eesc.usp.br/gear>
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */

#ifndef MATRIX_HH_
#define MATRIX_HH_

class Matrix
{
    int n_row_;
    int n_col_;
    float ** matrix_;
public:
    Matrix( const int n_row, const int n_col);
    ~Matrix();
    static void multRaw( const int n_row_A, const int n_col_A, const float ** matrix_A, const int n_row_X, const int n_col_X, const float ** matrix_X, float ** matrix_B );
    void set( const int x, const int y, const float value );
    float get( const int x, const int y );
    static void mult( Matrix * matrix_A, Matrix * matrix_X, Matrix * matrix_B );
    void clean();
    void print();
    int getNCol();
    int getNRow();

};

#endif	// MATRIX_HH_
